package com.qiankun.tang.ui.fragment.mine;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.common.library.ui.fragment.BaseFragment;
import com.facebook.drawee.view.SimpleDraweeView;
import com.qiankun.tang.R;

/**
 * @author txf
 * @Title
 * @package com.qiankun.tang.ui.fragment.mine
 * @date 2017/6/15 0015
 */

public class MineFragment extends BaseFragment implements View.OnClickListener {
    SimpleDraweeView mPortrait;
    TextView mUserName;
    @Override
    protected View buildChildView() {
        return LayoutInflater.from(getContext()).inflate(R.layout.fragment_mine, null);
    }
    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        mPortrait = getViewById(R.id.mine_portrait);
        mUserName = getViewById(R.id.mine_userName);
        getViewById(R.id.mine_portrait).setOnClickListener(this);
        getViewById(R.id.mine_news).setOnClickListener(this);
        getViewById(R.id.mine_follow).setOnClickListener(this);
        getViewById(R.id.mine_cache).setOnClickListener(this);
        getViewById(R.id.mine_keep).setOnClickListener(this);
        getViewById(R.id.mine_feedback).setOnClickListener(this);
        getViewById(R.id.mine_submission).setOnClickListener(this);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.mine_portrait://我的消息
                clickPortrait();
                break;
            case R.id.mine_news://我的消息
                clickNews();
                break;
            case R.id.mine_follow://我的关注
                clickFollow();
                break;
            case R.id.mine_cache://我的缓存
                clickCache();
                break;
            case R.id.mine_keep://观看记录
                clickKeep();
                break;
            case R.id.mine_feedback://意见反馈
                clickFeedback();
                break;
            case R.id.mine_submission://我要投稿
                clickSubmission();
                break;
        }
    }
    private void clickPortrait() {

    }
    private void clickNews() {

    }
    private void clickFollow() {

    }
    private void clickCache() {

    }
    private void clickKeep() {

    }
    private void clickFeedback() {

    }
    private void clickSubmission() {

    }
}
